﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>添加教师</title>
    <link rel="stylesheet" href="css/style.css">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!--[if lt IE 10]>
    <script src="js/assets/es5-shim.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="root with-padding">
    <div class="topbar clearafter">
        <ol class="breadcrumb">
          <li>
            <a href="./teacherlist.html" data-i18n="index.teacherlist">教师列表</a>
          </li>
          <li class="active">
            <a data-i18n="info.addteacher">添加教师</a>
          </li>
        </ol>
    </div>
    <div class="formList" id="J_teacheradd_wrap">
        <h4 style="color:rgba(0, 0, 0, 0.85)" data-i18n="info.classininfo">ClassIn信息</h4>
        <div class="formLi">
            <div class="formTitle required">
                <span data-i18n="info.classinaccountnumber">ClassIn账号</span>
            </div>
            <div class="formContent">
                <input class="form-control" data-formcheck="length" type="text" name="classin_no">
                <input class="" type="button" name="" value="检测" id="classIntest" style="display:none">
                <input class="" type="button" name="" value="重置密码" id="resetpassword" style="display:none" data-i18n="[value]input.resetpassword">
                <div style="margin-top:4px;color:#2ba76c;font-size:12px;display:none" id="prompt" data-i18n="input.exist">账号已存在，可正常使用</div>
            </div>

        </div>
        <input type="hidden" value="" name="hidden">
        <div class="formLi pw" style="display:none">
            <div class="formTitle required">
                <span data-i18n="input.originalpassword">初始密码</span>
            </div>
            <div class="formContent">
                <input class="form-control" type="text" name="pw">
                <div style="margin-top:4px;color:red;font-size:12px;display:none" id="noprompt" data-i18n="input.unregistered">账号尚未注册，请设置初始密码</div>
            </div>
        </div>
        <h4 style="color:rgba(0, 0, 0, 0.85)" data-i18n="info.basicinformation">基础信息</h4>
        <div class="formLi" style="display: none" >
            <div class="formTitle required">
                <span data-i18n="info.loginAccount">登录账号</span>
            </div>
            <div class="formContent">
                <input class="form-control"  type="text" name="account" disabled="disabled">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle required">
                <span data-i18n="info.teachername">教师姓名</span>
            </div>
            <div class="formContent">
                <input class="form-control" data-formcheck="length" type="text" name="name">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle required">
                <span data-i18n="info.sex">性别</span>
            </div>
            <div class="formContent genderWrap">
                  <span>
                    <span class="icon icon-size-16 icon-radio" data-type="checkbox">
                        <input type="checkbox" name="gender" data-checkedmax="1" value="0">
                    </span><span data-type="label" data-i18n="sex.man">男</span>
                  </span>&nbsp;
                <span>
                    <span class="icon icon-size-16 icon-radio" data-type="checkbox">
                        <input type="checkbox" name="gender" data-checkedmax="1" value="1">
                    </span><span data-type="label" data-i18n="sex.woman">女</span>
                  </span>
                <div class="J_gender_help"></div>
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle required">
                <span data-i18n="info.cellphonenumber">手机号</span>
            </div>
            <div class="formContent">
                <input class="form-control" data-formcheck="length,justnumber" type="text" name="phone">
                <input type="hidden" name="tuid">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle required">
                <span data-i18n="info.headteachers">教师头像</span>
            </div>
            <div class="formContent" id="J_imgupload">
                    <span class="icon icon-uploadimg" id="J_uploadCover" data-formcheck="length">
                      <img width="200" height="200" id="J_img">
                      <input type="file" name="Filedata" multiple="multiple" data-url="/api/file/upload">
                    </span>
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.homepage">显示到首页</span>
            </div>
            <div class="formContent">
                <span id="status" class="icon icon-size-16 icon-checkbox" data-type="checkbox">
                    <input type="checkbox" name="status">
                </span>
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.title">头衔</span>
            </div>
            <div class="formContent">
                <input class="form-control" type="text" name="title">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.coursetype">教授课程</span>
            </div>
            <div class="formContent">
                <div id="J_coursetypes"></div>
                <div class="J_coursetype_help"></div>
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.emailaddress">电子邮箱</span>
            </div>
            <div class="formContent">
                <input class="form-control" type="text" name="email">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.intro">简介</span>
            </div>
            <div class="formContent">
                <textarea class="form-control" style="width:500px;height:100px;" name="introduce"></textarea>
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.remark1">备注1</span>
            </div>
            <div class="formContent">
                <input class="form-control" type="text" name="teach_student_count" style="width:500px;">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.remark2">备注2</span>
            </div>
            <div class="formContent">
                <input class="form-control" type="text" name="lessontime_text" style="width:500px;">
            </div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.educationalbackground">教育背景</span>
            </div>
            <div class="formContent" id="J_eduction"></div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.workexperience">工作经历</span>
            </div>
            <div class="formContent" id="J_workexp"></div>
        </div>
        <div class="formLi">
            <div class="formTitle">
                <span data-i18n="info.resume">教师简历</span>
            </div>
            <div class="formContent" id="J_resume">
                <div class="J_file_wrap" style="display:none;">
                    <a id="J_resume_filename"></a>
                    <span class="icon icon-size-16 icon-delete" style="margin-left: 5px;"></span>
                </div>
                <a class="btn btn-primary baseWidth icon icon-upload">
                    <span class="icon icon-size-16 icon-btn-plus" style="margin-right:5px;"></span>
                    <span data-i18n="info.selectresume">选择简历</span>
                    <input type="file" name="Filedata" multiple="multiple" data-url="/api/file/upload"
                           style="opacity:0;">
                </a>
            </div>
        </div>
    </div>
    <div style="padding:12px; margin-bottom:20px;text-align:center;">
        <input type="button" class="btn btn-primary btn-submit" id="J_teacheradd" value="提 交" data-i18n="[value]course.submit">
    </div>
</div>
<script src="js/dist/base.js" charset="utf-8"></script>
<script src="js/dist/widgets/teacher.js" charset="utf-8"></script>
</body>
</html>
